import {
  requestJson,
} from '@/services'
export function getStaffList(params) {
  // return new Promise((resolve => {
  //   resolve({
  //     "code": 0,
  //     "data": {
  //       "record": [{
  //         "appear_count": 4,
  //         "camera_name": "2222",
  //         "channel": 1,
  //         "count": 0,
  //         "face_attr": {
  //           "cap_style": "hat_style_type_none",
  //           "gender_code": "female",
  //           "glass_style": "transparent_glasses",
  //           "mustache_style": "mustache_style_type_none",
  //           "respirator_color": "color_type_none",
  //           "st_age": "st_adult",
  //           "st_age_value": "25.000000",
  //           "st_expression": "st_calm",
  //           "st_respirator": "st_respirator_mouth"
  //         },
  //         "feature": "-0.026478,0.065735,-0.006256,-0.086443,-0.050911,-0.048465,0.010536,0.000436,0.096051,0.099756,-0.080074,-0.030513,0.029515,0.039651,0.026401,0.132975,0.010522,0.116246,0.060077,-0.007500,0.042533,0.056197,-0.002587,-0.027385,0.006628,-0.250936,0.012139,-0.050103,0.036270,0.017565,-0.117694,0.014557,0.056977,-0.009651,0.002137,0.068392,-0.065546,-0.073523,-0.049962,-0.017537,-0.092938,-0.073812,0.031167,0.025311,-0.036445,0.021284,-0.087750,-0.020813,0.073959,0.003894,0.196398,0.046645,0.040543,0.020757,0.018493,-0.065046,0.011753,-0.064238,0.017235,0.102595,-0.022872,-0.050686,0.062516,-0.012462,-0.121988,-0.076012,-0.024257,-0.105815,0.054974,0.130866,-0.029993,0.003866,-0.116464,0.009327,0.058256,-0.016975,-0.026823,-0.069650,0.023554,-0.080053,-0.046082,-0.058355,-0.116140,-0.120337,0.004977,0.049625,0.047122,0.056541,0.009602,0.075393,-0.028699,0.032959,-0.002495,-0.051157,0.033599,-0.029655,0.037444,0.025649,0.049027,-0.005764,-0.035771,0.069594,-0.006207,0.021684,-0.019491,-0.018128,0.014100,-0.014944,-0.012961,0.014761,0.044409,-0.059613,-0.049006,0.027990,0.003058,0.027736,0.043798,0.120337,-0.039777,-0.020574,-0.088249,-0.020377,0.057750,0.050834,0.048142,0.063423,0.026190,-0.084770,-0.013995,0.021762,-0.000415,-0.024960,0.054004,0.101843,-0.056893,-0.078662,0.038097,0.074655,-0.004787,0.123436,0.086155,-0.014199,-0.101499,-0.004702,0.011176,-0.067872,-0.017284,-0.031385,0.038083,0.054580,0.059023,0.008625,-0.012469,0.054369,-0.060246,-0.138971,0.100487,-0.004681,-0.037415,-0.117174,0.020574,-0.075646,-0.027582,-0.045028,0.106419,0.012491,-0.017038,-0.067450,0.081621,0.030815,-0.024580,-0.008491,-0.081361,0.024763,0.039306,-0.037008,-0.039552,-0.099390,-0.198879,0.010382,0.096494,-0.059972,0.001153,0.027343,-0.017741,-0.007395,0.076904,-0.005349,-0.001799,-0.031216,0.037507,-0.084510,0.052760,0.027104,0.075787,0.078352,-0.030710,0.127323,-0.024489,-0.020890,0.013454,0.041499,-0.028770,-0.197051,0.006902,0.063458,0.024932,0.046223,-0.032818,-0.103094,-0.007486,0.047073,-0.052704,-0.019491,0.006214,-0.011654,-0.009131,-0.056232,-0.050384,0.051621,0.032629,-0.016054,0.016525,0.042455,-0.065046,-0.054046,0.062333,0.022901,0.012779,0.074564,-0.093387,0.152656,-0.049189,-0.079871,0.023414,-0.105829,-0.007416,-0.021263,-0.004344,0.028538,-0.149809,-0.001638,-0.039967,0.055909,0.015787,0.048226,0.089395,0.025895,-0.109350,0.037458,0.002074,0.017355,-0.020476,-0.024602,-0.119022,0.006087,",
  //         "img_id": "687fc7d7-eea7-4ba0-b4f8-d153002f7720",
  //         "img_path": "",
  //         "lib_id": 2147483647,
  //         "position": "",
  //         "quality": 0.91949999332427979,
  //         "similarity": 0,
  //         "person_id": "687fc7d7-eea7-4ba0-b4f8-d153002f7720",
  //         "snap_path": "record/channel1/face/687fc7d7-eea7-4ba0-b4f8-d153002f7720.jpg",
  //         "threshold": 85,
  //         "trigger": "2020-12-24 15:44:10",
  //         "wander_channels": "1",
  //         "wander_threshold": 5
  //       }],
  //       "result_num": 1,
  //       "total_num": 24
  //     },
  //     "msg": ""
  //   })
  // }))
  params = {
    ...params,
    msg_id: "2053",
  }
  return requestJson(params)
}

export function deleteStaffList(params) {
  params.msg_id = "1072"
  return requestJson(params)
}

export function deleteAllStaff(params) {
  return requestJson({
    ...params,
    msg_id: "1026",
  })
}

export function exportStaffList(params) {
  params.msg_id = "2050"
  return requestJson(params)
}


export function exportBatchStaffList(params = {}) {
  params.msg_id = "2049"
  return requestJson(params)
}


export function editStaff(formData = {}) {
  formData.msg_id = "1033";
  return requestJson(formData);
}